package cn.ac.jaas.isc.vegetable.pbms.service;

import cn.ac.jaas.isc.vegetable.common.core.util.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.ac.jaas.isc.vegetable.pbms.api.entity.ArcEquipment;

import javax.servlet.http.HttpServletRequest;

/**
 * @author 张高昌
 * @date 2022-05-02 11:14:42
 */
public interface ArcEquipmentService extends IService<ArcEquipment> {

    /**
     * 新增设备
     *
     * @param arcEquipment
     * @return
     */
    R saveEquipment(ArcEquipment arcEquipment, HttpServletRequest request);

    /**
     * 修改设备
     *
     * @param arcEquipment
     * @return
     */
    R updateEquipmentById(ArcEquipment arcEquipment, HttpServletRequest request);

    /**
     * 查询历史修改
     *
     * @param page
     * @param equipmentId 设备id
     * @return Page
     * @author 张高昌
     * @date 2022-07-30 17:30
     */
    Page getHistoryPage(Page page, Integer equipmentId);
}
